package com.azier.kapacitor.script.method;

import com.azier.kapacitor.script.arg.SingleQuotesArg;

import java.util.ArrayList;

/**
* 1 * @Author: luoj
* 2 * @Date: 2019/11/8 11:27
* 3
*/
public class DurationField extends AbstractMethod {
    private static final String name = "durationField";
    /**
    Optional field key to add the alert duration to the data. The duration is always in units of nanoseconds.
    **/
    /**
    可选字段键，用于将警报持续时间添加到数据中。持续时间始终以纳秒为单位。
    **/
    public DurationField(String alert) {
        super(new ArrayList<>(), name);
        //
        this.args.add(new SingleQuotesArg(alert));


    }
}
